<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        
    </h:head>
    <h:body>

        <ui:composition template="/WEB-INF/facelets/templates/TemplatePagina.xhtml">
           <ui:define name="content">
                <p:layoutUnit styleClass="border" position="center"  >  
                    <h:form styleClass="border1">
                        <p:panel id="planAcademico" header="Plan Academico">
                            <center>
                                <p:commandButton id="listarPlan" icon="ui-icon-search" actionListener="#{bCurso.doListarCurso()}" value="Ver" async="true" update="planAcademico"/>
                            </center>
                            <center>
                                <h:panelGrid columns="2" rendered="#{bCurso.sizeRegistrosCurso ne '0'}">
                                    <h:outputText value="Numero de Registros"/>
                                    <h:outputText value="#{bCurso.arrCurso.size()}"/>
                                </h:panelGrid>
                                <h:panelGrid columns="1" rendered="#{bCurso.sizeRegistrosCurso ne '0'}" cellpadding="0" cellspacing="0" border="0" styleClass="width-table">
                                    <p:dataTable id="tblPlan" value="#{bCurso.arrCurso}" var="plan">
                                        <p:column headerText="Ciclo">
                                            <h:outputText value="#{plan.objDetCurricula.objCiclo.descripcion}"/>
                                        </p:column>
                                        <p:column headerText="Cod. Curso">
                                            <h:outputText value="#{plan.idCurso}"/>
                                        </p:column>
                                        <p:column headerText="Curso">
                                            <h:outputText value="#{plan.nombre}"/>
                                        </p:column>
                                        <p:column headerText="N° Creditos">
                                            <h:outputText value="#{plan.numCreditos}"/>
                                        </p:column>
                                    </p:dataTable>

                                </h:panelGrid>
                            </center>   
                        </p:panel>

                    </h:form>                 
                </p:layoutUnit>
           </ui:define>
           
        </ui:composition>
        
        
    </h:body>
</html>
